LATEX 	= latex
DVI2PS = dvips
PS2PDF = ps2pdf
PDFLATEX = pdflatex
CAT	= cat
CP	= cp

%.pdf: %.tex booklabel.aux
	$(LATEX) $<
	$(CAT) $*.aux booklabel.aux > t.aux
	$(CP) t.aux $*.aux
	$(LATEX) $<
	$(DVI2PS) $*.dvi
	$(PS2PDF) $*.ps

all: now

exebook: che1.tex che2.tex che3.tex booklabel.aux exemindex.pdf

ch: che1.pdf che2.pdf che3.pdf che4.pdf che5.pdf

now: che5.pdf

booklabel.aux:  Fuctioanl-Analysis.aux
	getlabel.py  Fuctioanl-Analysis.aux booklabel.aux